package com.istock.union.controller;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.istock.base.spring.dynamicLoad.PropertyStaticLoader;

@Controller
@RequestMapping("pre")
public class TestController {

	@RequestMapping("testProperty")
	@ResponseBody
	public Map<String ,Object> testProperty(String key){
		String value = PropertyStaticLoader.getInstance().findProperty(key, null);
		Map<String , Object> result = new HashMap<String , Object>();
		result.put("result", value);
		return result;
	}
	
}
